﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../include/head.jspf"%>
<%@ include file="../include/communParam.jspf"%>
<script type="text/javascript" src="resource/js/communParam.js"></script>
<link rel="stylesheet" href="resource/css/css.css" type="text/css" media="screen" />
<title>东方易云后台管理系统</title>
<style>
body { background: #f5f5f5 ;}
</style>
<script>
function editReceiveChannel(){
	var errorMsg = "";
	errorMsg += sl_check($("#fcChannelDesc")[0], "发送通道描述", 200, 1);
	errorMsg += sl_check($("#fcCommunParam")[0], "物理地址", 200, 1);
	
	if(errorMsg != ""){
		alert(errorMsg);
	}else{
		$('#editForm').submit();
	}
}
	
	
</script>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="js/pngfix.js"></script>
<![endif]-->
</head>
<body>
<form:form action="receiveChannelEditSubmit" commandName="dataxReceiveChannelVO" id="editForm">
<input type="hidden" name="pageNo" value="<c:out value='${pageNo}' />"/>
<input type="hidden" name="fiIdSelect" value="<c:out value='${fiIdSelect }' />"/>
<input type="hidden" name="fcMsgFormateIdSelect" value="<c:out value='${fcMsgFormateIdSelect}' />"/>
<input type="hidden" name="fcMsgTypeSelect" value="<c:out value='${fcMsgTypeSelect}' />"/>
<input type="hidden" name="fcCommunTypeSelect" value="<c:out value='${fcCommunTypeSelect }' />"/>
<div id="body-wrapper">
  <!-- Wrapper for the radial gradient background -->
  <div id="main-content">
    <!-- Main Content Section with everything -->
    <!-- Page Head -->
    <div id="page-title">
    <h3>修改传输方式</h3></div>
    <div class="pgline"></div>
    <div class="notification querytj png_bg">
      <div>
       <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
	  <tbody>
        <tr>
          <td width="14%" align="right" height="35">接入通道ID：</td>
          <td width="35%" align="left"><form:input path="fiId" class="input2" readonly="true"/></td>
          <td width="16%" align="right" height="35">接入通道描述：</td>
          <td width="35%" align="left"><form:textarea path="fcChannelDesc" class="input2"/></td>
        </tr>
        
        <tr>
          <td width="14%" align="right" height="35">传输方式：</td>
          <td width="35%" align="left">
          	<select name="fcCommunType" id="fcCommunType" class="select1"  onchange="resetCommunParam();">
          		<c:forEach items="${optionCommunTypeMap}" var="one">
	            	<c:choose>
	   					<c:when test="${dataxReceiveChannelVO.fcCommunType==one.key}">
	   						<option value="<c:out value="${one.key }" />" selected="selected"><c:out value="${one.value }" /></option>
	   					</c:when>
	   					<c:otherwise><option value="<c:out value="${one.key }" />"><c:out value="${one.value }" /></option></c:otherwise>
	   				</c:choose>
	            </c:forEach>
            </select>
          </td>
          <td width="16%" align="right" height="35">物理地址：</td>
          <td width="35%" align="left"><form:input path="fcCommunParam" class="input2" readonly="true" onclick="showEdit()"/></td>
        </tr>
        
        <tr>
          <td align="right"  height="35">报文格式：</td>
          <td align="left">
            <select name="fcMsgFormateId" class="select1" >
	            <c:forEach items="${optionMsgFormatMap}" var="one">
	            	<c:choose>
	   					<c:when test="${dataxReceiveChannelVO.fcMsgFormateId==one.key}">
	   						<option value="<c:out value="${one.key }" />" selected="selected"><c:out value="${one.value }" /></option>
	   					</c:when>
	   					<c:otherwise><option value="<c:out value="${one.key }" />"><c:out value="${one.value }" /></option></c:otherwise>
	   				</c:choose>
	            </c:forEach>
            </select>
		  </td>
          <td align="right"  height="35">报文类型：</td>
          <td align="left">
          <select name="fcMsgType" class="select1" >
	            <c:forEach items="${optionMsgTypeMap}" var="one">
	            	<c:choose>
	   					<c:when test="${dataxReceiveChannelVO.fcMsgType==one.key}">
	   						<option value="<c:out value="${one.key }" />" selected="selected"><c:out value="${one.value }" /></option>
	   					</c:when>
	   					<c:otherwise><option value="<c:out value="${one.key }" />"><c:out value="${one.value }" /></option></c:otherwise>
	   				</c:choose>
	            </c:forEach>
            </select>
		  </td>
        </tr>
        <tr>
          <td align="right"  height="35">报文编码：</td>
          <td height="35">
		    <select name="fcMsgCharset" class="select1" >
	            <c:forEach items="${optionMsgCharsetMap}" var="one">
	            	<c:choose>
	   					<c:when test="${dataxReceiveChannelVO.fcMsgCharset==one.key}">
	   						<option value="<c:out value="${one.key }" />" selected="selected"><c:out value="${one.value }" /></option>
	   					</c:when>
	   					<c:otherwise><option value="<c:out value="${one.key }" />"><c:out value="${one.value }" /></option></c:otherwise>
	   				</c:choose>
	            </c:forEach>
            </select>
		  </td>
		  <td height="35" align="right">状态：</td>
		  <td height="35">
		  	<c:forEach items="${optionFiFlagMap}" var="one">
	        	<input name="fiFlag" type="radio" style="border-width:0" value="<c:out value="${one.key }" />" <c:out value="${dataxReceiveChannelVO.fiFlag==one.key?'Checked':''}"/>/><c:out value="${one.value }" />
	        </c:forEach>
	      </td>
        </tr>

		</tbody>
		 <tfoot>
        <tr>
          <td>&nbsp;</td>
          <td  height="35" ><a class="button" href="javascript:void(0);" onclick="editReceiveChannel();">保存</a>&nbsp;&nbsp;<a class="button" href="javascript:void(0)" onclick="history.go(-1)"> 取消</a></td>
        </tr>
</tfoot>
      </table>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <!-- End #main-content -->
  <%@ include file="../include/communParam.jspf"%>
</div>
</form:form>
</body>
</html>
